import React from 'react'
import MyHeader from './components/common/MyHeader.jsx'
import MyMenu from './components/common/MyMenu.jsx'
import MyMain from './components/common/MyMain.jsx'


export default class App extends React.Component {

  constructor(props) {
    super(props) // 必须要有super函数，才可以继承父类里面的属性和方法
    this.state = {
      msg: 'Hello React',
      count: 0,
      list: [1, 23, 24],
      userInfo: { id: 1, name: 'wqw' },
      isLogin: true,
    }
  }


  render() {

    const containerStyle = (
      <div>
        <MyHeader></MyHeader>
        <div>
          <MyMenu />
          <MyMain />
        </div>
      </div>
    );


    return containerStyle
  }
}